package com.itheima.bean;

public class Card {
            int cid;
            String number;
            Person p;
    public Card(int cid, String number) {
        this.cid = cid;
        this.number = number;

    }

    public Card() {
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Person getP() {
        return p;
    }

    public void setP(Person p) {
        this.p = p;
    }

    @Override
    public String toString() {
        return "Card{" +
                "cid=" + cid +
                ", number='" + number + '\'' +
                ", p=" + p +
                '}';
    }
}
